<!doctype html><html lang dir=ltr><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1"><title>在宝塔上制作酸酸乳 | Hui.Ke - Blog</title><meta name=generator content="Hugo Eureka 0.9.3"><link rel=stylesheet href=https://b.hui.ke/css/eureka.min.9cec6350e37e534b0338fa9a085bf06855de3b0f2dcf857e792e5e97b07ea905d4d5513db554cbc26a9c3da622bae92d.css><script defer src=https://b.hui.ke/js/eureka.min.fa9a6bf6d7a50bb635b4cca7d2ba5cf3dfb095ae3798773f1328f7950028b48c17d06276594e1b5f244a25a6c969a705.js></script>
<link rel=preconnect href=https://fonts.googleapis.com><link rel=preconnect href=https://fonts.gstatic.com crossorigin><link rel=preload href="https://fonts.googleapis.com/css2?family=Lora:wght@400;600;700&family=Noto+Serif+SC:wght@400;600;700&display=swap" as=style onload='this.onload=null,this.rel="stylesheet"'><link rel=stylesheet href=https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.4.0/build/styles/vs.min.css media=print onload='this.media="all",this.onload=null' crossorigin><script defer src=https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.4.0/build/highlight.min.js crossorigin></script>
<script defer src=https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.4.0/build/languages/bash.min.js crossorigin></script>
<script defer src=https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.4.0/build/languages/ini.min.js crossorigin></script>
<script defer src=https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.4.0/build/languages/json.min.js crossorigin></script>
<script defer src=https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.4.0/build/languages/php.min.js crossorigin></script>
<script defer src=https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.4.0/build/languages/python.min.js crossorigin></script>
<script defer src=https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.4.0/build/languages/shell.min.js crossorigin></script>
<script defer src=https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.4.0/build/languages/sql.min.js crossorigin></script>
<script defer src=https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.4.0/build/languages/x86asm.min.js crossorigin></script>
<script defer src=https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.4.0/build/languages/xml.min.js crossorigin></script>
<link rel=stylesheet href=https://b.hui.ke/css/highlightjs.min.2958991528e43eb6fc9b8c4f2b8e052f79c4010718e1d1e888a777620e9ee63021c2c57ec7417a3108019bb8c41943e6.css media=print onload='this.media="all",this.onload=null'><script defer type=text/javascript src=https://lib.baomitu.com/font-awesome/6.1.1/js/all.min.js></script>
<link rel=stylesheet href=https://cdn.jsdelivr.net/npm/katex@0.15.2/dist/katex.min.css integrity=sha384-MlJdn/WNKDGXveldHDdyRP1R4CTHr3FeuDNfhsLPYrq2t0UBkUdK2jyTnXPEK1NQ media=print onload='this.media="all",this.onload=null' crossorigin><script defer src=https://cdn.jsdelivr.net/npm/katex@0.15.2/dist/katex.min.js integrity=sha384-VQ8d8WVFw0yHhCk5E8I86oOhv48xLpnDZx5T9GogA/Y84DcCKWXDmSDfn13bzFZY crossorigin></script>
<script defer src=https://cdn.jsdelivr.net/npm/katex@0.15.2/dist/contrib/auto-render.min.js integrity=sha384-+XBljXPPiv+OzfbB3cVmLHf4hdUFHlWNZN5spNQ7rmHTXpd7WvJum6fIACpNNfIR crossorigin></script>
<script>document.addEventListener("DOMContentLoaded",function(){renderMathInElement(document.body,{delimiters:[{left:"$$",right:"$$",display:!0},{left:"$",right:"$",display:!1},{left:"\\(",right:"\\)",display:!1},{left:"\\[",right:"\\]",display:!0}]})})</script><script defer src=https://cdn.jsdelivr.net/npm/mermaid@8.14.0/dist/mermaid.min.js integrity=sha384-atOyb0FxAgN9LyAc6PEf9BjgwLISyansgdH8/VXQH8p2o5vfrRgmGIJ2Sg22L0A0 crossorigin></script>
<link rel=icon type=image/png sizes=32x32 href=https://b.hui.ke/icon_hub7ca0b5404c6d576559b2bd22c64b0e5_2009_32x32_fill_box_center_3.png><link rel=apple-touch-icon sizes=180x180 href=https://b.hui.ke/icon_hub7ca0b5404c6d576559b2bd22c64b0e5_2009_180x180_fill_box_center_3.png><meta name=description content="  是不是觉得花了好多美元买的境外服务器，只放一个 Trojan 太过浪费？想要将境外服务器利用起来？
  那你就来对了，本文就介绍了如何在安装了宝塔的服务器上，再搭建一个 Trojan。
  让你在能酣畅淋漓满世界转悠的时候，还能建个站玩玩，充分利用服务器资源。"><script type=application/ld+json>{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Posts","item":"https://b.hui.ke/posts/"},{"@type":"ListItem","position":2,"name":"在宝塔上制作酸酸乳","item":"https://b.hui.ke/posts/bt-and-trojan/"}]}</script><script type=application/ld+json>{"@context":"https://schema.org","@type":"Article","mainEntityOfPage":{"@type":"WebPage","@id":"https://b.hui.ke/posts/bt-and-trojan/"},"headline":"在宝塔上制作酸酸乳 | Hui.Ke - Blog","datePublished":"2020-05-07T14:41:06+08:00","dateModified":"2020-05-07T14:41:06+08:00","wordCount":1331,"author":{"@type":"Person","name":"Hui.Ke"},"publisher":{"@type":"Person","name":"Hui.Ke","logo":{"@type":"ImageObject","url":"https://b.hui.ke/icon.png"}},"description":"\u003cp\u003e  是不是觉得花了好多美元买的境外服务器，只放一个 Trojan 太过浪费？想要将境外服务器利用起来？\u003c\/p\u003e\n\u003cp\u003e  那你就来对了，本文就介绍了如何在安装了宝塔的服务器上，再搭建一个 Trojan。\u003c\/p\u003e\n\u003cp\u003e  让你在能酣畅淋漓满世界转悠的时候，还能建个站玩玩，充分利用服务器资源。\u003c\/p\u003e"}</script><meta property="og:title" content="在宝塔上制作酸酸乳 | Hui.Ke - Blog"><meta property="og:type" content="article"><meta property="og:image" content="https://b.hui.ke/icon.png"><meta property="og:url" content="https://b.hui.ke/posts/bt-and-trojan/"><meta property="og:description" content="  是不是觉得花了好多美元买的境外服务器，只放一个 Trojan 太过浪费？想要将境外服务器利用起来？
  那你就来对了，本文就介绍了如何在安装了宝塔的服务器上，再搭建一个 Trojan。
  让你在能酣畅淋漓满世界转悠的时候，还能建个站玩玩，充分利用服务器资源。"><meta property="og:site_name" content="Hui.Ke - Blog"><meta property="article:published_time" content="2020-05-07T14:41:06+08:00"><meta property="article:modified_time" content="2020-05-07T14:41:06+08:00"><meta property="article:section" content="posts"><meta property="article:tag" content="宝塔"><meta property="article:tag" content="Trojan"><meta property="og:see_also" content="https://b.hui.ke/posts/data-security-and-personal-information-protection/"><meta property="og:see_also" content="https://b.hui.ke/posts/mp-1/"><meta property="og:see_also" content="https://b.hui.ke/posts/regedit-delete-startup-item/"><meta property="og:see_also" content="https://b.hui.ke/posts/ols-wordpress/"><meta property="og:see_also" content="https://b.hui.ke/posts/epidemic-prevention-and-cyber-security/"><meta property="og:see_also" content="https://b.hui.ke/posts/comparison-of-thin-light-laptops/"><meta property="og:see_also" content="https://b.hui.ke/posts/sangfor-pt1/"><meta property="og:see_also" content="https://b.hui.ke/posts/minutes-of-general-manager-xus-meeting-on-monday/"><meta property="og:see_also" content="https://b.hui.ke/posts/my-github-stars/"><meta property="og:see_also" content="https://b.hui.ke/posts/raspberry-pi-motion/"><meta property="og:see_also" content="https://b.hui.ke/posts/transfer-files-with-rsync/"><meta property="og:see_also" content="https://b.hui.ke/posts/comparison-of-iflytek-mice/"><meta property="og:see_also" content="https://b.hui.ke/posts/resolutions-for-vmware-tools-installation-failure/"><meta property="og:see_also" content="https://b.hui.ke/posts/raspberry-pi-intranet-penetration/"><meta property="og:see_also" content="https://b.hui.ke/posts/image-and-video-optimization/"><meta property="og:see_also" content="https://b.hui.ke/posts/ccia-top-50-2020/"><meta property="og:see_also" content="https://b.hui.ke/posts/cdn-nodes/"><meta property="og:see_also" content="https://b.hui.ke/posts/vulfocus-building-guide/"><meta property="og:see_also" content="https://b.hui.ke/posts/build-vulstudy/"><meta property="og:see_also" content="https://b.hui.ke/posts/windows-file-recovery-help/"><meta property="og:see_also" content="https://b.hui.ke/posts/steam-free-games-27/"><meta property="og:see_also" content="https://b.hui.ke/posts/build-trojan/"><meta property="og:see_also" content="https://b.hui.ke/posts/build-taobao-coupon-website/"><meta property="og:see_also" content="https://b.hui.ke/posts/build-ssr/"><meta property="og:see_also" content="https://b.hui.ke/posts/hello-everyone/"><script>!function(e){"use strict";!function(){var i,s=window,o=document,a=e,c="".concat("https:"===o.location.protocol?"https://":"http://","sdk.51.la/js-sdk-pro.min.js"),n=o.createElement("script"),r=o.getElementsByTagName("script")[0];n.type="text/javascript",n.setAttribute("charset","UTF-8"),n.async=!0,n.src=c,n.id="LA_COLLECT",a.d=n,i=function(){s.LA.ids.push(a)},s.LA?s.LA.ids&&i():(s.LA=e,s.LA.ids=[],i()),r.parentNode.insertBefore(n,r)}()}({id:"Jgb8aUbG5e3rqhrs",ck:"Jgb8aUbG5e3rqhrs",autoTrack:!0,hashMode:!0})</script><body class="flex min-h-screen flex-col"><header class="min-h-16 pl-scrollbar bg-secondary-bg fixed z-50 flex w-full items-center shadow-sm"><div class="mx-auto w-full max-w-screen-xl"><script>let storageColorScheme=localStorage.getItem("lightDarkMode");((storageColorScheme=="Auto"||storageColorScheme==null)&&window.matchMedia("(prefers-color-scheme: dark)").matches||storageColorScheme=="Dark")&&document.getElementsByTagName("html")[0].classList.add("dark")</script><nav class="flex items-center justify-between flex-wrap px-4 py-4 md:py-0"><a href=/ class="me-6 text-primary-text text-xl font-bold">Hui.Ke - Blog</a>
<button id=navbar-btn class="md:hidden flex items-center px-3 py-2" aria-label="Open Navbar">
<i class="fas fa-bars"></i></button><div id=target class="hidden block md:flex md:grow md:justify-between md:items-center w-full md:w-auto text-primary-text z-20"><div class="md:flex md:h-16 text-sm md:grow pb-4 md:pb-0 border-b md:border-b-0"><a href=/posts/ class="block mt-4 md:inline-block md:mt-0 md:h-(16-4px) md:leading-(16-4px) box-border md:border-t-2 md:border-b-2 selected-menu-item me-4">Posts</a>
<a href=/docs/ class="block mt-4 md:inline-block md:mt-0 md:h-(16-4px) md:leading-(16-4px) box-border md:border-t-2 md:border-b-2 border-transparent me-4">Docs</a>
<a href=/categories/ class="block mt-4 md:inline-block md:mt-0 md:h-(16-4px) md:leading-(16-4px) box-border md:border-t-2 md:border-b-2 border-transparent me-4">Categories</a>
<a href=/series/ class="block mt-4 md:inline-block md:mt-0 md:h-(16-4px) md:leading-(16-4px) box-border md:border-t-2 md:border-b-2 border-transparent me-4">Series</a>
<a href=/tags/ class="block mt-4 md:inline-block md:mt-0 md:h-(16-4px) md:leading-(16-4px) box-border md:border-t-2 md:border-b-2 border-transparent me-4">Tags</a>
<a href=/love/ class="block mt-4 md:inline-block md:mt-0 md:h-(16-4px) md:leading-(16-4px) box-border md:border-t-2 md:border-b-2 border-transparent me-4">Love</a>
<a href=/about/ class="block mt-4 md:inline-block md:mt-0 md:h-(16-4px) md:leading-(16-4px) box-border md:border-t-2 md:border-b-2 border-transparent me-4">About</a></div><div class=flex><div class="relative pt-4 md:pt-0"><div class="cursor-pointer hover:text-eureka" id=lightDarkMode><i class="fas fa-adjust"></i></div><div class="fixed hidden inset-0 opacity-0 h-full w-full cursor-default z-30" id=is-open></div><div class="absolute flex flex-col start-0 md:start-auto end-auto md:end-0 hidden bg-secondary-bg w-48 rounded py-2 border border-tertiary-bg cursor-pointer z-40" id=lightDarkOptions><span class="px-4 py-1 hover:text-eureka" name=Light>Light</span>
<span class="px-4 py-1 hover:text-eureka" name=Dark>Dark</span>
<span class="px-4 py-1 hover:text-eureka" name=Auto>Auto</span></div></div></div></div><div class="fixed hidden inset-0 opacity-0 h-full w-full cursor-default z-0" id=is-open-mobile></div></nav><script>let element=document.getElementById("lightDarkMode");storageColorScheme==null||storageColorScheme=="Auto"?document.addEventListener("DOMContentLoaded",()=>{window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",switchDarkMode)}):storageColorScheme=="Light"?(element.firstElementChild.classList.remove("fa-adjust"),element.firstElementChild.setAttribute("data-icon","sun"),element.firstElementChild.classList.add("fa-sun")):storageColorScheme=="Dark"&&(element.firstElementChild.classList.remove("fa-adjust"),element.firstElementChild.setAttribute("data-icon","moon"),element.firstElementChild.classList.add("fa-moon")),document.addEventListener("DOMContentLoaded",()=>{getcolorscheme(),switchBurger()})</script></div></header><main class="grow pt-16"><div class=pl-scrollbar><div class="mx-auto w-full max-w-screen-xl lg:px-4 xl:px-8"><div class="grid grid-cols-2 gap-4 lg:grid-cols-8 lg:pt-12"><div class="bg-secondary-bg col-span-2 rounded px-6 py-8 lg:col-span-6"><article class=prose><h1 class=mb-4>在宝塔上制作酸酸乳</h1><div class="text-tertiary-text not-prose mt-2 flex flex-row flex-wrap items-center"><div class="me-6 my-2"><i class="fas fa-calendar me-1"></i>
<span>2020-05-07</span></div><div class="me-6 my-2"><i class="fa-solid fa-pen-to-square me-1"></i>
<span>2020-05-07</span></div><div class="me-6 my-2"><i class="fas fa-clock me-1"></i>
<span>3 min read</span></div><div class="me-6 my-2"><i class="fas fa-folder me-1"></i>
<a href=https://b.hui.ke/categories/it/ class=hover:text-eureka>IT</a></div><div class="me-6 my-2"><i class="fas fa-th-list me-1"></i>
<a href=https://b.hui.ke/series/misc/ class=hover:text-eureka>Misc</a></div><div class="me-6 my-2"><i class="fa-solid fa-eye me-1"></i>
<span id=busuanzi_value_page_pv><i class="fa fa-spinner fa-spin"></i></span> Hits</div></div><p>  是不是觉得花了好多美元买的境外服务器，只放一个 Trojan 太过浪费？想要将境外服务器利用起来？</p><p>  那你就来对了，本文就介绍了如何在安装了宝塔的服务器上，再搭建一个 Trojan。</p><p>  让你在能酣畅淋漓满世界转悠的时候，还能建个站玩玩，充分利用服务器资源。</p><p>  博主有幸成功申请到了 Oracle 的两台永久免费的服务器，但苦于服务器位于日本，建站以后国内访问速度感人。想要建几个站学习，但又买不起境内的服务器，所以只能“出此下策”：将宝塔与 Trojan 相结合，达到既能利用服务器建站，又能充分利用服务器资源。</p><blockquote><p>本文需要 Trojan 使用经验，若未曾搭建过 Trojan，请先学习：<a href=https://b.hui.ke/build-trojan/>《Build Trojan（制作“保质期长的”酸酸乳）》</a>。</p></blockquote><h2 id=准备工作>准备工作</h2><h3 id=一台服务器>一台服务器</h3><p>  建议选择与博主一样的系统版本进行搭建：<a href="https://bandwagonhost.com/aff.php?aff=53011">搬瓦工</a> <strong>Centos 7</strong> x86_64 bbr</p><blockquote><p>友情提示：<a href="https://bandwagonhost.com/aff.php?aff=53011">搬瓦工</a> 可能需要先翻墙才可访问！</p></blockquote><h3 id=一个域名>一个域名</h3><p>  任意纯英文域名皆可。域名类型与系统搭建无关，建议使用纯英文域名。博主多年使用感受，推荐在 <a href="https://wanwang.aliyun.com/domain/?source=5176.11533457&userCode=ezpw9sih&type=copy">阿里云域名注册</a> 注册域名，并使用免费的 <a href="https://wanwang.aliyun.com/domain/dns?source=5176.11533457&userCode=ezpw9sih&type=copy">阿里云解析</a> 对域名进行解析。另外有其它建站需求的朋友，可点击 <a href="https://www.aliyun.com/minisite/goods?userCode=ezpw9sih">阿里云·云小站</a> 领取优惠券。</p><h2 id=域名解析>域名解析</h2><p>  将你的域名解析至你的服务器，即添加<strong>主域名</strong> A 记录指向服务器 IP（只需添加 @ 的主域名解析就行，无须添加 www 等的二级域名解析）</p><h2 id=服务器端操作>服务器端操作</h2><h3 id=安装宝塔>安装宝塔</h3><p>  建议安装最新版宝塔，故请移步 <a href="https://www.bt.cn/?invite_code=MV9hbXRqb20=">宝塔官网</a>，获取安装链接及使用教程。</p><h3 id=安装-trojan>安装 Trojan</h3><h4 id=搭建网站>搭建网站</h4><p>  登录宝塔，用刚刚解析至服务器的域名搭建一个网站。</p><h4 id=申请-ssl-证书>申请 SSL 证书</h4><p>  通过 <a href="https://www.aliyun.com/product/cas?source=5176.11533457&userCode=ezpw9sih&type=copy">阿里云云盾证书</a>，申请 SSL 证书，并绑定至宝塔的站点。</p><blockquote><p>绑定了 SSL 证书后，要在宝塔面板关闭 SSL！否则可能导致 Trojan 无法正常使用！</p></blockquote><h4 id=运行脚本>运行脚本</h4><p>  在服务器运行如下脚本</p><pre><code class=language-bash>bash &lt;(curl -fsSL https://raw.githubusercontent.com/trojan-gfw/trojan-quickstart/master/trojan-quickstart.sh)
</code></pre><h3 id=配置服务器端-trojan>配置服务器端 Trojan</h3><p>  安装完 Trojan 后，进行配置</p><pre><code class=language-shell>vi /usr/local/etc/trojan/config.json
</code></pre><p>  修改密码及域名信息如下</p><pre><code class=language-json>{
    &quot;run_type&quot;: &quot;server&quot;,
    &quot;local_addr&quot;: &quot;0.0.0.0&quot;,
    &quot;local_port&quot;: 443,
    &quot;remote_addr&quot;: &quot;127.0.0.1&quot;,
    &quot;remote_port&quot;: 80,
    &quot;password&quot;: [
        &quot;**自定义密码**&quot;,
        &quot;**自定义密码**&quot;
    ],
    &quot;log_level&quot;: 1,
    &quot;ssl&quot;: {
        &quot;cert&quot;: &quot;/www/server/panel/vhost/ssl/**你的域名**/fullchain.pem&quot;,
        &quot;key&quot;: &quot;/www/server/panel/vhost/ssl/**你的域名**/privkey.pem&quot;,
        &quot;key_password&quot;: &quot;&quot;,
        &quot;cipher&quot;: &quot;ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384&quot;,
        &quot;cipher_tls13&quot;: &quot;TLS_AES_128_GCM_SHA256:TLS_CHACHA20_POLY1305_SHA256:TLS_AES_256_GCM_SHA384&quot;,
        &quot;prefer_server_cipher&quot;: true,
        &quot;alpn&quot;: [
            &quot;http/1.1&quot;
        ],
        &quot;alpn_port_override&quot;: {
            &quot;h2&quot;: 81
</code></pre><h3 id=trojan-服务>Trojan 服务</h3><pre><code class=language-shell>systemctl restart trojan     # 重启 Trojan 服务
systemctl status trojan     # 查看 Trojan 服务状态
systemctl enable trojan     # 设置开机自启
</code></pre><h2 id=本地操作>本地操作</h2><h3 id=修改本地-trojan-配置>修改本地 Trojan 配置</h3><p>  搭建过 Trojan 的朋友应该不难发现（还没搭建过 Trojan 或者没有本地工具的请先学习：<a href=https://b.hui.ke/build-trojan/>《Build Trojan（制作“保质期长的”酸酸乳）》</a>），本地 Trojan 工具包里的 “config.json” 就是 Trojan 的配置文件，我们修改了服务器上的 Trojan 配置，当然还要同步修改本地的 Trojan 配置。打开“config.json”，按如下修改</p><pre><code class=language-json>{
    &quot;run_type&quot;: &quot;client&quot;,
    &quot;local_addr&quot;: &quot;127.0.0.1&quot;,
    &quot;local_port&quot;: 1080,
    &quot;remote_addr&quot;: &quot;**你的域名**&quot;,
    &quot;remote_port&quot;: 443,
    &quot;password&quot;: [
        &quot;**自定义密码**&quot;
    ],
    &quot;log_level&quot;: 1,
    &quot;ssl&quot;: {
        &quot;verify&quot;: true,
        &quot;verify_hostname&quot;: true,
        &quot;cert&quot;: &quot;fullchain.cer&quot;,
        &quot;cipher_tls13&quot;:&quot;TLS_AES_128_GCM_SHA256:TLS_CHACHA20_POLY1305_SHA256:TLS_AES_256_GCM_SHA384&quot;,
&quot;sni&quot;: &quot;&quot;,
        &quot;alpn&quot;: [
            &quot;h2&quot;,
            &quot;http/1.1&quot;
        ],
        &quot;reuse_session&quot;: true,
        &quot;session_ticket&quot;: false,
        &quot;curves&quot;: &quot;&quot;
    },
    &quot;tcp&quot;: {
        &quot;no_delay&quot;: true,
        &quot;keep_alive&quot;: true,
        &quot;fast_open&quot;: false,
        &quot;fast_open_qlen&quot;: 20
    }
}

</code></pre><h3 id=修改-fullchaincer>修改 fullchain.cer</h3><p>  还记得我们一开始在 <a href="https://www.aliyun.com/product/cas?source=5176.11533457&userCode=ezpw9sih&type=copy">阿里云云盾证书</a> 申请的 SSL 证书吗？将“.pem”文件更名为“fullchain.cer”，并替换 Trojan 工具中的“fullchain.cer”。就大功告成啦！</p><blockquote><p>经过博主多次实践，nginx 的 SSL 会和 Trojan 相冲突，所以如果要使用 Trojan，还想正常搭建网站，就不能开启 SSL 功能。所有的网站都不能加 SSL！</p></blockquote></article><div class=my-4><a href=https://b.hui.ke/tags/%E5%AE%9D%E5%A1%94/ class="inline-block bg-tertiary-bg text-sm rounded px-3 py-1 my-1 me-2 hover:text-eureka">#宝塔</a>
<a href=https://b.hui.ke/tags/trojan/ class="inline-block bg-tertiary-bg text-sm rounded px-3 py-1 my-1 me-2 hover:text-eureka">#Trojan</a></div><div class=py-2><div class="my-8 flex flex-col items-center md:flex-row"><a href=https://b.hui.ke/authors/hui.ke/ class="md:me-4 text-primary-text h-24 w-24"><img src=https://b.hui.ke/bagua.webp class="bg-primary-bg w-full rounded-full" alt=Avatar></a><div class="mt-4 w-full md:mt-0 md:w-auto"><a href=https://b.hui.ke/authors/hui.ke/ class="mb-2 block border-b pb-1 text-lg font-bold"><h3>Hui.Ke</h3></a><span class="block pb-2">❤ Cyber Security | Safety is a priority.</span>
<a href=mailto:3199731997@qq.com class=me-2><i class="fas fa-envelope"></i></a>
<a href="https://wpa.qq.com/msgrd?v=3&uin=3199731997" class=me-2><i class="fab fa-qq"></i></a>
<a href=/images/aixinxianquan.webp class=me-2><i class="fab fa-weixin"></i></a></div></div></div><div class="-mx-2 mt-4 flex flex-col border-t px-2 pt-4 md:flex-row md:justify-between"><div><span class="text-primary-text block font-bold">Previous</span>
<a href=https://b.hui.ke/posts/ip-blocklist-and-allowlist/ class=block>Linux 网站 IP 允许/拒绝名单设置</a></div><div class="mt-4 md:mt-0 md:text-right"><span class="text-primary-text block font-bold">Next</span>
<a href=https://b.hui.ke/posts/zhenhua-school-song/ class=block>振华校歌</a></div></div><div id=valine-comments class=mt-4></div><script defer src=https://cdn.jsdelivr.net/npm/valine@1.4.16/dist/Valine.min.js integrity=sha384-e0+DNUCJo75aOAzHQbFWYBCM9/S4f0BhRJXvEgbE3mMS85RM20MSSGStHuNdY2QK crossorigin></script>
<script>document.addEventListener("DOMContentLoaded",function(){new Valine({el:"#valine-comments",appId:"BQnVqWIiq78AdqwyhvBVAa3y-MdYXbMMI",appKey:"RKg5By312YjM8rU6WkkfK9IN",recordIP:"true",serverURLs:"https://l.hui.ke",visitor:"true"})})</script></div><div class=col-span-2><div class="bg-secondary-bg prose max-w-none rounded p-6"><h3>Series of Posts</h3><a href=https://b.hui.ke/posts/data-security-and-personal-information-protection/ class=no-underline>数据安全 & 个人信息保护</a><br><a href=https://b.hui.ke/posts/mp-1/ class=no-underline>密评从零到 0.001</a><br><a href=https://b.hui.ke/posts/regedit-delete-startup-item/ class=no-underline>注册表删启动项</a><br><a href=https://b.hui.ke/posts/ols-wordpress/ class=no-underline>WordPress + OLS</a><br><a href=https://b.hui.ke/posts/epidemic-prevention-and-cyber-security/ class=no-underline>防疫 & 网络安全</a><br><a href=https://b.hui.ke/posts/comparison-of-thin-light-laptops/ class=no-underline>轻薄本对比</a><br><a href=https://b.hui.ke/posts/sangfor-pt1/ class=no-underline>Sangfor PT1 Certification</a><br><a href=https://b.hui.ke/posts/minutes-of-general-manager-xus-meeting-on-monday/ class=no-underline>周一徐总会议纪要</a><br><a href=https://b.hui.ke/posts/my-github-stars/ class=no-underline>我的 GitHub 星标项目</a><br><a href=https://b.hui.ke/posts/raspberry-pi-motion/ class=no-underline>树莓派运动监测和录制</a><br><a href=https://b.hui.ke/posts/transfer-files-with-rsync/ class=no-underline>使用 rsync SSH 传输文件</a><br><a href=https://b.hui.ke/posts/comparison-of-iflytek-mice/ class=no-underline>科大讯飞鼠标参数对比</a><br><a href=https://b.hui.ke/posts/resolutions-for-vmware-tools-installation-failure/ class=no-underline>VMware Tools 安装失败的解决办法</a><br><a href=https://b.hui.ke/posts/raspberry-pi-intranet-penetration/ class=no-underline>树莓派内网穿透</a><br><a href=https://b.hui.ke/posts/image-and-video-optimization/ class=no-underline>网站图片、视频优化处理</a><br><a href=https://b.hui.ke/posts/ccia-top-50-2020/ class=no-underline>2020 年 CCIA 中国网络安全竞争力 50 强榜单</a><br><a href=https://b.hui.ke/posts/cdn-nodes/ class=no-underline>CDN 节点 IP</a><br><a href=https://b.hui.ke/posts/vulfocus-building-guide/ class=no-underline>Vulfocus 搭建指南</a><br><a href=https://b.hui.ke/posts/build-vulstudy/ class=no-underline>搭建 vulstudy</a><br><a href=https://b.hui.ke/posts/windows-file-recovery-help/ class=no-underline>Windows File Recovery 使用帮助</a><br><a href=https://b.hui.ke/posts/bt-and-trojan/ class=no-underline>在宝塔上制作酸酸乳</a><br><a href=https://b.hui.ke/posts/steam-free-games-27/ class=no-underline>Steam 免费游戏 代码一键领取 27 个</a><br><a href=https://b.hui.ke/posts/build-trojan/ class=no-underline>制作“保质期长的”酸酸乳</a><br><a href=https://b.hui.ke/posts/build-taobao-coupon-website/ class=no-underline>搭建淘宝领券网</a><br><a href=https://b.hui.ke/posts/build-ssr/ class=no-underline>制作酸酸乳</a><br><a href=https://b.hui.ke/posts/hello-everyone/ class=no-underline>名言警句</a><br></div><div class="bg-primary-bg
prose sticky top-16 z-10 hidden px-6 py-4 lg:block"><h3>On This Page</h3></div><div class="sticky-toc hidden px-6 pb-6 lg:block"><nav id=TableOfContents><ul><li><a href=#准备工作>准备工作</a><ul><li><a href=#一台服务器>一台服务器</a></li><li><a href=#一个域名>一个域名</a></li></ul></li><li><a href=#域名解析>域名解析</a></li><li><a href=#服务器端操作>服务器端操作</a><ul><li><a href=#安装宝塔>安装宝塔</a></li><li><a href=#安装-trojan>安装 Trojan</a><ul><li><a href=#搭建网站>搭建网站</a></li><li><a href=#申请-ssl-证书>申请 SSL 证书</a></li><li><a href=#运行脚本>运行脚本</a></li></ul></li><li><a href=#配置服务器端-trojan>配置服务器端 Trojan</a></li><li><a href=#trojan-服务>Trojan 服务</a></li></ul></li><li><a href=#本地操作>本地操作</a><ul><li><a href=#修改本地-trojan-配置>修改本地 Trojan 配置</a></li><li><a href=#修改-fullchaincer>修改 fullchain.cer</a></li></ul></li></ul></nav></div><script>window.addEventListener("DOMContentLoaded",()=>{enableStickyToc()})</script></div><div class="bg-secondary-bg prose col-span-2 rounded p-6 lg:col-span-6"><h3>See Also</h3><a href=https://b.hui.ke/posts/build-trojan/ class=no-underline>制作“保质期长的”酸酸乳</a><br></div></div><script>document.addEventListener("DOMContentLoaded",()=>{hljs.highlightAll()})</script></div></div></main><footer class=pl-scrollbar><div class="mx-auto w-full max-w-screen-xl"><div class="text-center p-6 pin-b"><script async src=/js/click.js></script><div id=poem_ip></div><script type=text/javascript>jinrishici.load(function(e){tags.innerHTML=e.data.matchTags})</script><div><span id=timeDate>载入年天数...</span><span id=times>载入时分秒...</span>
<script async src=/js/duration.js></script></div><a href=https://www.foreverblog.cn/go.html target=_blank><img src=https://img.foreverblog.cn/wormhole_4_tp.gif alt style=display:inline-block;width:auto;height:32px title=穿梭虫洞-随机访问十年之约友链博客></a><p class="text-sm text-tertiary-text"><script async src=//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js></script>本站总访问量 <span id=busuanzi_value_site_pv></span> 次
&#183; 您是本站的第 <span id=busuanzi_value_site_uv></span> 个小伙伴</p><script async src=/js/tab.js></script></div></div></footer></body></html>